package com.sky.service;

import com.sky.dto.EmployeeDTO;
import com.sky.dto.EmployeeLoginDTO;
import com.sky.dto.EmployeePageQueryDTO;
import com.sky.entity.Employee;
import com.sky.result.PageResult;

public interface EmployeeService {

    /**
     * 员工登录
     * @param employeeLoginDTO
     * @return
     */
    Employee login(EmployeeLoginDTO employeeLoginDTO);

    /**
     * @description
     ***:添加员工
     **/
    void save(EmployeeDTO employeeDTO);

    /**
     * @description
     ***:分页模糊查询员工
     **/
    PageResult pageQuary(EmployeePageQueryDTO employeePageQueryDTO);

    /**
     * @description
     ***:启用禁用员工信息
     **/
    void update(Integer status, Long id);

    /**
     * @description
     ***:根据员工id查询员工信息
     **/
    Employee getById(Long id);

    /**
     * @description
     ***:修改员工信息
     **/
    void updateEmp(EmployeeDTO employeeDTO);
}
